package com.snoopy.gas1.service.impl;

import com.snoopy.gas1.entity.Financial_record;
import com.snoopy.gas1.mapper.Financial_recordMapper;
import com.snoopy.gas1.service.Financial_recordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

// 修正类名拼写错误（recore → record）
@Service
public class Financial_recordServiceImpl implements Financial_recordService {
    // 修正：注入财务记录Mapper，而非油品Mapper
    @Autowired
    private Financial_recordMapper financialRecordMapper;

    @Override
    public List<Financial_record> lists() {
        // 调用财务记录Mapper的查询方法
        return financialRecordMapper.lists();
    }
}
